﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AGameOfThrones.messages
{
    class factory : stream.factory
    {
        public stream.streamable create(String in_Name)
        {
            if (in_Name == "request_movepiece")
            {
                return new request_movepiece();
            }

            if (in_Name == "process_movepiece")
            {
                return new process_movepiece();
            }


            return null;
        }
    }
}
